<template>
  <div class="home-index">
    <stat-chart v-if="user.branchId===1"></stat-chart>
    <welcome v-else :user="user"></welcome>
  </div>
</template>

<script>
  import loginUser from 'mixins/loginUser';

  import StatChart from './statChart';
  import Welcome from './welcome';

  export default {
    mixins: [loginUser],

    data() {
      return {};
    },

    components: {
      StatChart,
      Welcome
    }
  };

</script>

<style lang="scss" scoped>


</style>
